package com.qf.day12_2;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12_2
 * @Description: ${TODO}
 * @Date 2021/6/2 14:36
 */
public class TestAnimal {
    public static void main(String[] args) {

//        Animal a=new Animal();
//        a.breed="泰迪";
//        a.age=2;
//        a.sex="公";
//        a.eat();
//        a.sleep();

       // Dog dog=new Dog();
        Animal dog=new Dog();
        dog.breed="泰迪";
        dog.age=2;
        dog.sex="公";
        //dog.furColor="黑色";
        dog.eat();
        dog.sleep();
        //dog.run();

        Animal cat=new Cat();
        cat.breed="加菲猫";
        cat.age=2;
        cat.sex="公";
        cat.eat();
        cat.sleep();

    }
}
